﻿﻿using System;
using System.Collections.Generic;
using System.Web;
namespace WebMvc.App.Models.Tips.Common
{
    public class article_attachment
    {
		public string id=null;
		public string article_id=null;
		public string file_name=null;
		public string file_path=null;
		public string file_size=null;
		public string file_ext=null;
		public string down_qty=null;
		public string point=null;
		public string add_time=null;
		public string user_id=null;
        public string __name__;
        public article_attachment(string name)
        {
            this.__name__ = name;
			this.id = string.Format("{0}.id",__name__);
			this.article_id = string.Format("{0}.article_id",__name__);
			this.file_name = string.Format("{0}.file_name",__name__);
			this.file_path = string.Format("{0}.file_path",__name__);
			this.file_size = string.Format("{0}.file_size",__name__);
			this.file_ext = string.Format("{0}.file_ext",__name__);
			this.down_qty = string.Format("{0}.down_qty",__name__);
			this.point = string.Format("{0}.point",__name__);
			this.add_time = string.Format("{0}.add_time",__name__);
			this.user_id = string.Format("{0}.user_id",__name__);
        }
        public article_attachment()
        {
			this.id = string.Format("{0}.id",__name__);
			this.article_id = string.Format("{0}.article_id",__name__);
			this.file_name = string.Format("{0}.file_name",__name__);
			this.file_path = string.Format("{0}.file_path",__name__);
			this.file_size = string.Format("{0}.file_size",__name__);
			this.file_ext = string.Format("{0}.file_ext",__name__);
			this.down_qty = string.Format("{0}.down_qty",__name__);
			this.point = string.Format("{0}.point",__name__);
			this.add_time = string.Format("{0}.add_time",__name__);
			this.user_id = string.Format("{0}.user_id",__name__);
        }
        public override string ToString()
        {
            if (__name__ == null)
            {
                return "article_attachment";
            }
            else
            {
                return string.Format("article_attachment as {0}",__name__);
            }
        }
    }
}